#define R 10
#define C 10
#include<stdio.h>

int main()
{
	int arr[R][C] = { 0 };
	int i = 0;
	int j = 0;
	for (int i = 0; i < R; i++)
	{
		arr[i][i] = 1;
		arr[i][0] = 1;
	}

	for (i = 2; i < R; i++)
	{
		for (j = 1; j < i; j++)
		{
			arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
		}
	}

	for (i = 0; i < R; i++)
	{
		for (j = 0; j <= i; j++)
		{
			printf("%d\t", arr[i][j]);
		}
		printf("\n");
	}

	return 0;
}